-
Notifications
You must be signed in to change notification settings - Fork 509
ci: automate pre- and post-release version bump to include -DEV in main #3583 #3586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: automate pre- and post-release version bump to include -DEV in main #3583 #3586
Conversation
✅ Deploy Preview for opentelemetry-cpp-api-docs canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR automates the pre- and post-release version management process to ensure the main branch always contains a development version with a -DEV suffix, providing clear distinction between released and development builds.
- Adds a manual pre-release workflow that removes
-DEVsuffix and creates release tags - Adds an automated post-release workflow that bumps to the next development version
- Updates the current version from
1.22.0to1.23.0-DEVto demonstrate the new format
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
api/include/opentelemetry/version.h |
Updates version from 1.22.0 to 1.23.0-DEV with explanatory comment |
.github/workflows/pre-release.yml |
Manual workflow to prepare clean release versions and create tags |
.github/workflows/post-release-bump.yml |
Automated workflow to bump version to next development build after releases |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
e82a546 to
704cfa1
Compare
Error Correction
Fixes # (#3583)
Problem
Currently, after a release, the
mainbranch version remains the same as the last release (e.g.,1.22.0).This creates ambiguity over whether a build from
mainis:Changes
Proposed Solution
Automate the post-release version bump so that the
mainbranch always reflects a development build with a-DEVsuffix.Implementation
New Pre-Release Workflow (
.github/workflows/pre-release.yml)-DEVsuffix frominclude/opentelemetry/version.h.main.vX.Y.Z).New Post-Release Workflow (
.github/workflows/post-release.yml)vX.Y.Z) is pushed.include/opentelemetry/version.hto that next version with a-DEVsuffix.main.version.hUpdateExample after release of
1.22.0→ bumped to:Benefits
Files Added:
.github/workflows/pre-release.yml.github/workflows/post-release.ymlFiles Updated:
include/opentelemetry/version.hChecklist:
CHANGELOG.mdupdated for non-trivial changes